package com.atguigu.srb.core.pojo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 借款人
 * </p>
 *
 * @author Atguigu
 * @since 2024-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="借款人的审批信息")
public class BorrowerApprovalVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "性别（1：男 0：女）")
    private Integer sex;
    @ApiModelProperty("姓名")
    private String  name;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("身份证号")
    private String idCard;
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "是否结婚（1：是 0：否）")
    @TableField("is_marry")
    private Boolean marry;

    @ApiModelProperty(value = "行业")
    private String industry;

    @ApiModelProperty(value = "月收入")
    private String income;

    @ApiModelProperty(value = "还款来源")
    private String returnSource;

    @ApiModelProperty(value = "联系人名称")
    private String contactsName;

    @ApiModelProperty(value = "联系人手机")
    private String contactsMobile;

    @ApiModelProperty(value = "联系人关系")
    private String contactsRelation;

    @ApiModelProperty(value = "身份证正面的url")
    private String idCard1;
    @ApiModelProperty(value = "身份证反面的url")
    private String idCard2;
    @ApiModelProperty(value = "房产证的url")
    private String house;
    @ApiModelProperty(value = "车的url")
    private String car;


    // 创建时间和更新时间，我们希望让mybatisplus自动填充 ---> 元对象处理器(metaObjectHandler)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
